/*
第五题
使用双重循环实现五子棋游戏棋盘的绘制， 棋盘界面的具体效果如下：
 */

public class printChessBoard{
    public static void main(String[] args){
        char[][] board = new char[17][17];
        int i;
        int j;
        int numCounter = 1;
        int letterCounter = 11;

        for(i=1; i<=16; i++){
            for(j=1; j<=16; j++){
                board[i][j] = (char)43;
            }
        }

        board[0][0] = (char)32;

        while(numCounter < 11){
            board[numCounter][0] = (char)(numCounter+47);
            board[0][numCounter] = (char)(numCounter+47);
            numCounter++;
        }

        while(letterCounter < 17){
            board[letterCounter][0] = (char)(letterCounter+86);
            board[0][letterCounter] = (char)(letterCounter+86);
            letterCounter++;
        }

        for(i=0; i<=16; i++){
            for(j=0; j<=16; j++){
                System.out.print(board[i][j] + " ");
            }
            System.out.println();
        }
    }
}